<template>
  <div class="baike_cell">
    <div class="top">
      <div class="avatar">
        <nuxt-link :to="`/baike/${info.id}`">
          <li-image
            :src="info.pictures"
            class="img"
            :is-preview="false"
          ></li-image>
        </nuxt-link>
      </div>
      <div class="info">
        <div class="title">
          <div class="name van-ellipsis"><nuxt-link :to="`/baike/${info.id}`">{{ info.name }}</nuxt-link></div>
          <div class="score">
            <span class="sp1">热度</span>
            <span class="sp2">{{ info.hotScore }}</span>
          </div>
        </div>
        <div class="txt van-multi-ellipsis--l2">
          {{ info.projectIntroduce }}
        </div>
      </div>
    </div>

    <div class="bottom">
      <div class="cell">
        <img src="@/assets/images/baike/icon_01.png" alt="" />
        <span>治疗说明</span>
      </div>
      <div class="cell">
        <img src="@/assets/images/baike/icon_02.png" alt="" />
        <span>术后护理</span>
      </div>
      <div class="cell">
        <img src="@/assets/images/baike/icon_03.png" alt="" />
        <span>相关材料</span>
      </div>
      <div class="cell">
        <img src="@/assets/images/baike/icon_04.png" alt="" />
        <span>常见问题</span>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: "Baike",
  props: {
    info: {
      type: Object,
      default: function () {
        return {};
      },
    },
  },
  data() {
    return {};
  },
  methods: {
    // 查看详情
    lookDetail() {
      //let query = this.$route.query;
      let o = this.info;
      let params = {};
      params.id = o.id;
      // let _path = `/baike/detail?${this.$stingify(params)}`;
      // this.$router.replace({
      //     path: _path
      // })
      this.$routerPush("/baike/detail", params);
    },
  },
};
</script>
<style lang="less" scoped>
@import "./index.less";
</style>